package com.ouc.openplatform.ouc.authManage.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ouc.openplatform.common.CommonMapper;
import com.ouc.openplatform.ouc.authManage.model.NJ_DepartmentStructure;

public interface NJ_DepartmentStructureDAO extends CommonMapper<NJ_DepartmentStructure>{
	//4.根据父级id查询所有的部门信息------sxl
    public List<NJ_DepartmentStructure> getAllDepStructureBypid(@Param("id") int id);
    //5.根据部门名称,部门编码和父级id判断部门名是否存在-----sxl
  	public NJ_DepartmentStructure IsOkDepartment(@Param("departmentName")String departmentName,@Param("departmentCode")String departmentCode, @Param("pid")int pid);
    
    //根据父级id查询直接子id的个数------sxl
	public int getDepStructureCountBypid(@Param("id") int id);
}
